
<div class="crumbs">
    <h3>家居顾问详情</h3>
    <p><a ui-sref="main.decorate-sell-list" >家居顾问管理</a> > <a ui-sref="main.decorate-sell-list" >家居顾问列表</a> > 家居顾问详情</p>
</div>

<div class="content-box " style=" min-width: 1100px">
    <div ng-include="'/templates/center/decorate-sell/d-s-tab-inc.html'"></div>

    <div class="form-inline form-group "  >
        <h4 class="mb10 mt30 float-left">客户列表</h4>
        <div class="inline-block f12 float-right pt20">
            <select class="form-control input-sm "  ng-init="refuses=[{code:true,desc:'是'},{code:false,desc:'否'}]"   ng-options="v.code as v.desc for v in refuses" ng-model="list.refuse"   >
                <option value="">--是否飞单--</option>
            </select>
            <select class="form-control input-sm "    ng-options="v.code as v.desc for v in allTypes.relationTypes " ng-model="list.relationType"   >
                <option value="">--关联来源--</option>
            </select>

            <input type="text" class="form-control input-sm"  placeholder="电话" maxlength="11" size="12" ng-model="list.mobilePhone">

            <button   type="button" class="btn btn-primary btn-sm  input-sm " ng-click="submitSearch(list)">查询</button>
            <button   type="button" class="btn btn-primary btn-sm  input-sm ml10 " ng-click="createDialog()">更换家居顾问</button>
        </div>
    </div>

    <table class=" table   table-hover table-condensed  table-striped text-center ">
        <thead style="background:#8A8BC4; color: #fff">
        <tr>
            <td>昵称</td>
            <td>电话号码</td>
            <td>账户状态</td>
            <td>未关闭会话</td>
            <td>未结束订单</td>
            <td>是否飞单</td>
            <td>关联来源</td>
            <td>备注</td>
            <td><label><input type="checkbox" ng-model="isAllSelect"  class="v-top"  ng-click="isAllSelectFun(isAllSelect,grid.result)"/> 全选</label></td>
        </tr>
        </thead>


        <tbody>
        <tr ng-repeat="g in grid.result">
            <td>{{g.name }}</td>
            <td>{{g.mobilePhone }}</td>
            <td>{{g.enable?'启用':'禁用'}}</td>
            <td>{{g.notCloseSessionCount }}</td>
            <td>{{g.notEndOrderCount }}</td>
            <td>{{g.refuse?'是':'否'}}</td>
            <td>{{g.relationTypeDesc }}</td>
            <td>{{g.remark }}</td>
            <td><input type="checkbox"  ng-checked="isAllSelect"  ng-model="g.isSelect" ng-click="selectFun(g.isSelect,grid.result)"/></td>
        </tr>
        <tr ng-if="!grid.result"><td colspan=9 class="f12 c-999 " >没有相关数据!</td></tr>
        </tbody>
    </table>
    <div ng-include="'/templates/partial/page.html'" style="height: 50px;background-color: #f4f4f6"></div>

</div>


<!--dialog 更改家居顾问-->
<div class="modal fade createDialog ">
    <div class="modal-dialog " style="width: 500px">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >更改家居顾问</h4>
            </div>
            <div class="modal-body"  >
                <div class="dialog-content ml20 ">
                    <dl class="  form-inline form-group" >


                        <!--<dd>-->
                            <!--<span>服务区域：</span>-->
                            <!--<select class="form-control "   ng-options="v.id as v.name for v in cityTypes" ng-model="seller.areaId"  ng-required="true" >-->
                                <!--<option value="">&#45;&#45;选择服务区域&#45;&#45;</option>-->
                            <!--</select>-->
                        <!--</dd>-->
                        <dd>
                            <span>家居顾问：</span>
                            <select class="form-control" ng-options="v.id as v.name for v in sellerTypes" ng-model="seller.newPeId" ng-required="true"  >
                                <option value="">--选择家居顾问--</option>
                            </select>
                        </dd>

                        <p class="text-center c-red f12 mt10 "> <i class="loading f12 c-green block"></i>{{seller.errorMsg}}</p>
                    </dl>

                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary "  ng-click="twitterIdsChangeSeller(seller)" >提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->